package com.jin.service.Impl;

import com.jin.mapper.WareHouseInfoMapper;
import com.jin.pojo.WareHouseInfo;
import com.jin.service.WareHouseInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WareHouseInfoServiceImpl implements WareHouseInfoService {
    @Autowired
    WareHouseInfoMapper wareHouseInfoMapper;

    @Override
    public int insertWareHouseInfo(WareHouseInfo wareHouseInfo) {
        return wareHouseInfoMapper.insertWareHouseInfo(wareHouseInfo);
    }

    @Override
    public int delWareHouse(Integer WareHouseId) {
        return wareHouseInfoMapper.delWareHouse(WareHouseId);
    }

    @Override
    public int updateWareHouse(WareHouseInfo wareHouseInfo) {
        return wareHouseInfoMapper.updateWareHouse(wareHouseInfo);
    }

    @Override
    public List<WareHouseInfo> selectWareHouse() {
        return wareHouseInfoMapper.selectWareHouse();
    }
}
